//
//  GameStrategyViewController.m
//  gamebox_qpp
//
//  Created by 赵隆杰 on 2021/12/30.
//

#import "GameStrategyViewController.h"
#import "GameDetailTableView.h"

@interface GameStrategyViewController ()<UIScrollViewDelegate>

@property (nonatomic, strong) GameDetailTableView *detailTableView;


@end

@implementation GameStrategyViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.naviView.hidden = YES;
    self.view.backgroundColor = [UIColor whiteColor];
    
    
    [self reloadUI];
}



- (void)setViewModel:(GameDetailNewViewModel *)viewModel
{
    _viewModel = viewModel;
}

- (void)reloadUI
{
    self.detailTableView = [[GameDetailTableView alloc] initWithFrame:CGRectZero style:UITableViewStylePlain];
    self.detailTableView.detailModel = self.viewModel.detailModel;
    [self.view addSubview:self.detailTableView];
    [self.detailTableView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.edges.equalTo(self.view);
    }];

}



@end
